package models;

import javax.persistence.Entity;

import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorType;
import play.db.jpa.Model;

/**
 * @author Christian
 *
 */
@Entity
public class SensorConfig extends Model{

    private TFSensorType sensorType;
    private String uid;
    private String host;
    private String hostUID;

    protected SensorConfig(){ }
    
    public SensorConfig(TFSensorType sensorType, String uid, String host, String hostUID){
        this.sensorType = sensorType;
        this.uid = uid;
        this.host = host;
        this.hostUID = hostUID;
    }

    public TFSensorType getSensorType() {
        return sensorType;
    }

    public String getUid() {
        return uid;
    }

    public String getHost() {
        return host;
    }

    public String getHostUID() {
        return hostUID;
    }
    
    @Override
    public String toString() {
        return "SensorConfig{sensorType=" + sensorType + " uid=" + uid + " host=" + host + " hostUID=" + hostUID
                + "}";
    }
}
